package com.wjc.train.business.mapper;

import com.wjc.train.business.entity.ConfirmOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wjc.train.business.req.ConfirmOrderQueryReq;
import com.wjc.train.business.resp.ConfirmOrderQueryResp;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * <p>
 * 确认订单表 Mapper 接口
 * </p>
 *
 * @author Guessed
 * @since 2023-08-15
 */
public interface ConfirmOrderMapper extends BaseMapper<ConfirmOrder> {

  IPage<ConfirmOrderQueryResp> queryList(@Param("page") IPage<ConfirmOrderQueryResp> page,
                                       @Param("confirmorderQueryReq") ConfirmOrderQueryReq confirmorderQueryReq);

    int queryQueue(@Param("trainCode") String trainCode,@Param("createTime") Date createTime);
}
